#include "packet.h"

Packet_t* packet_new()
{
    Packet_t* pkt = malloc(sizeof(Packet_t));
    if (!pkt) {
        log_syserr("new Packet error.");
        return NULL;
    }
    memset(pkt, 0, sizeof(Packet_t));
    return pkt;
}

void packet_reset(Packet_t* packet)
{
    memset(packet, 0, sizeof(Packet_t));
}

void packet_free(Packet_t* packet)
{
    free(packet);
}